
        <div id="img_contain">
    	    <h1>Accueil</h1>
			<div id="zoom_forum">
				<a href="#inline-1" rel="prettyPhoto" ><h2> Voir le dernier forum publie </h2></a>
					<div id="inline-1">
					<?php
						require_once("model/userBD.php");
						$user=select_user_by_id($tab['id_user'][0]);
						$date=explode('-',$tab['date_forum'][0]);
						echo "Forum publie par ", $user['civilite'][0], " ", $user['nom'][0], " ", $user['prenom'][0]," le ", $date[2],"/",$date[1],"/",$date[0];
						echo "<br/>";
						echo "Categorie : ";
						require_once("model/categoryBD.php");
						$categ=select_category_by_id($tab['id_categ'][0]);
						echo $categ['name_categ'][0];
						echo "<br/>";
						echo "Texte : ";
						echo $tab['text_forum'][0];
						echo "<br/>";
						echo "<br/>";
						require_once("model/answerBD.php");
						$answer=select_answer_forum($tab['id_forum'][0]);
						for($i=0 ; $i < count($answer['id_answer']) ; $i++) {
							require_once("model/userBD.php");
							$user_answer=select_user_by_id($answer['id_user'][$i]);
							$date = explode('-', $answer['date_answer'][$i]);
							echo "Reponse publie par ", $user_answer['civilite'][0], " ", $user_answer['nom'][0], " ", $user_answer['prenom'][0]," le ", $date[2],"/",$date[1],"/",$date[0], "</a>";
							echo "<br/>";
							echo $answer['text_answer'][$i];
							echo "<br/><br/>";
						}
						echo "Veuillez vous connecter pour repondre a ce forum !";
					?>
					</div>
			</div>
        </div> <!-- fin div img_contain -->
        